<template>
    <van-grid :column-num="5">
        <van-grid-item v-for="item in channelArr" :key="item.id" :icon="item.icon_url" :text="item.name" @click="goChannelList(item.id)"/>
    </van-grid>
</template>

<script>
export default {
    props:["channelArr"],
    methods:{
        goChannelList(id){
            this.$router.push('/channelList?id='+id);
        }
    }
}
</script>